﻿using Microsoft.EntityFrameworkCore;

namespace Server.Todo.Context
{
    public class ToDoContext:DbContext
    {
        /// <summary>
        /// 构造函数说明
        /// </summary>
        public ToDoContext(DbContextOptions<ToDoContext> options):base(options)
        {
            
        }

        #region 属性

        /// <summary>
        /// 属性
        /// </summary>
        private int myVar;

        /// <summary>
        /// 属性
        /// </summary>
		public int MyProperty
        {
            get { return myVar; }
            set { myVar = value; }
        }

        #endregion 属性 

        public  DbSet<ToDo> ToDo { get; set; }

        public DbSet<User> User { get; set; }

        public DbSet<Memo> Memo { get; set; }

    }
}
